package com.quxing.amazon.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author zhb
 * @description
 * @date 2021/5/10 15:41
 */
@Data
@ApiModel("商品查询条件类")
public class GoodQuery {

    @ApiModelProperty("页码")
    private Integer page = 1;

    @ApiModelProperty("页大小")
    private Integer size = 15;

    @ApiModelProperty("分类id")
    private Integer categoryId;

    private List<Integer> categoryIds;

    @ApiModelProperty("标题关键字")
    private String title;

    @ApiModelProperty("最低价格")
    private BigDecimal minPrice;

    @ApiModelProperty("最高价格")
    private BigDecimal maxPrice;

    @ApiModelProperty("最低评分")
    private BigDecimal minScore;

    @ApiModelProperty("最高评分")
    private BigDecimal maxScore;

    @ApiModelProperty("最低评分人数")
    private Integer minScoreCount;

    @ApiModelProperty("最高评分人数")
    private Integer maxScoreCount;

    @ApiModelProperty("排序字段")
    private String sortFiled;

    @ApiModelProperty("排序")
    private String sort;
}
